/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Beans;

import java.sql.ResultSet;
import java.sql.SQLException;

/**
 *
 * @author AlexRodriguez
 */
public class Extras {
    
        private String idextra;//atributo
	private String nombreextra;//atributo
        private String dirextra;//atributo
        private String emailextra;//atributo
        private String dniextra;
        private String sexoextra;
        

	//construye los objetos
	public  static Extras load(ResultSet rs)throws SQLException
	{
		Extras extras = new Extras();
		extras.setIdextra(rs.getString(1)+"");
		extras.setDniextra(rs.getString(2)+"");
		extras.setNombreextra(rs.getString(3)+"");
                extras.setDirextra(rs.getString(4)+"");
                extras.setEmailextra(rs.getString(5)+"");
                extras.setSexoextra(rs.getString(6)+"");
                return extras;
	}
	//metodos modificadores

    public void setDirextra(String dirextra) {
        this.dirextra = dirextra;
    }

    public void setDniextra(String dniextra) {
        this.dniextra = dniextra;
    }

    public void setEmailextra(String emailextra) {
        this.emailextra = emailextra;
    }

    public void setIdextra(String idextra) {
        this.idextra = idextra;
    }

    public void setNombreextra(String nombreextra) {
        this.nombreextra = nombreextra;
    }

    public void setSexoextra(String sexoextra) {
        this.sexoextra = sexoextra;
    }
    
    
     //metodos analizadores

    public String getDirextra() {
        return dirextra;
    }

    public String getDniextra() {
        return dniextra;
    }

    public String getEmailextra() {
        return emailextra;
    }

    public String getIdextra() {
        return idextra;
    }

    public String getNombreextra() {
        return nombreextra;
    }

    public String getSexoextra() {
        return sexoextra;
    }

    
}
